const Koa = require('koa');
const app = new Koa()
const logger = require('koa-logger');
const md1= async (ctx,next)=>{
    ctx.type="text/html;charset=utf-8";
    await next();
    ctx.body =ctx.body+"is Best language"
}
const md2 = async (ctx,next)=>{
    ctx.body="hello world";
    await next()
}
const md3 = async (ctx,next)=>{
    ctx.body = ctx.body+"JavaScript "
    await next()
}
app.use(logger())
app.use(md1);
app.use(md2);
app.use(md3);
app.listen(8080)